using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace UglyAnimals
{
    class HelperObstacle:Obstacle
    {
        public float Velocity
        {
            get;
            set;
        }


        public HelperObstacle(ObstacleType type, Texture2D texture):base(type, texture)
        {
            Type = type;
            ObstacleTexture = texture;
            switch (Type)
            {
                case ObstacleType.Trampoline:
                    Friction = 1.0f; // no friction at all
                    isGroundObstacle = true;
                    break;
            }
            
        }

        public void Initialize(Vector2 position, float speed, float velocity)
        {
            base.Initialize(position, speed);
            Velocity = velocity;
        }

        public override void Update(GameTime gameTime)
        {
            base.Update(gameTime);
        }

        public override void Draw(SpriteBatch spriteBatch)
        {
            if(Active)
            spriteBatch.Draw(ObstacleTexture, Position, null, Color.White, 0f, Vector2.Zero, 1f, SpriteEffects.None, 0.3f);
        }
    }
}
